#include "amplifierdata.h"

AmplifierData::AmplifierData(QObject *parent) : QObject(parent) {
}

void AmplifierData::setPowerMeterParameters(QJsonDocument jsonDocument) {
  powerMeterData = jsonDocument.object();
}

quint16 AmplifierData::getPowerMeterFWDPower() {
  return(powerMeterData["currentFWDPower"].toDouble());
}

quint16 AmplifierData::getPowerMeterREFPower() {
  return(powerMeterData["currentREFPower"].toDouble());
}

double AmplifierData::getPowerMeterVSWR() {
  return(powerMeterData["currentVSWR"].toDouble());
}

quint8 AmplifierData::getPowerMeterPickupType() {
  return(powerMeterData["pickupPowerLevel"].toDouble());
}
